package com.demo.chapter8.patter.template;

/**银行：不同的银行取悦用户的方式不一样，需要自己实现makeCustomerHappy
 * @author Administrator
 *
 */
public abstract class OnlineBanking {
	
	public void processCustomer(int id){
        Customer c = Database.getCustomerWithId(id);
        makeCustomerHappy(c);
    }
    abstract void makeCustomerHappy(Customer c);


    // dummy Customer class
    static private class Customer {}
    // dummy Datbase class
    static private class Database{
        static Customer getCustomerWithId(int id){ return new Customer();}
    }

}
